namespace Study306 {

  class Person {
    constructor(
      public name: string,
      public age: number,
      public isActive: boolean
    ) { }
  }

  type Yuanzu = [string, number, boolean]

  class Son extends Person {

    sname: string

    constructor(sname: string, ...arg: Yuanzu) {
      super(...arg)  // 使用剩余参数将元组传递给父类构造函数
      this.sname = sname
    }
  }


  // 使用示例
  const son = new Son("SonName", "John", 25, true);
  console.log(son);



}

